#ifndef QCPRINTFORM_H
#define QCPRINTFORM_H

#include <QWidget>
#include "customchart.h"

struct QcPrintFormData
{
    QVector<double> data;
    QString qcName = "";
    QString qcLot = "";
    QString testItem = "";
    double target = 0;
    double sd = 0;
    double mean = 0;
    double cv = 0;
    int no =0;
    double reuslt = 0.0;
    QString strDateTime ="";
    int currentPage =0;
    int totalPage =0;
};


namespace Ui {
class QcPrintForm;
}

class QcPrintForm : public QWidget
{
    Q_OBJECT

public:
    explicit QcPrintForm(QWidget *parent = nullptr);
    ~QcPrintForm();

    void setData(const QcPrintFormData & data);

private:
    Ui::QcPrintForm *ui;
    CustomChart * m_chart{nullptr};
};

#endif // QCPRINTFORM_H
